Detecting fly height of a head over a storage medium

ABSTRACT

A fly height control system comprises a measurement circuit that measures a first amplitude of a pulse, which is based on a predetermined pattern recorded on a storage medium, at a first predetermined time and second amplitudes of the pulse at respective second predetermined times. A calculation circuit estimates a distance between a head and the storage medium based on a function of the first amplitude and the second amplitudes. A head controller that controls the distance between the head and the storage medium based on the estimate.

CROSS-REFERENCE TO RELATED APPLICATIONS

This application is a continuation application of U.S. patent application Ser. No. 10/671,030, filed on Sep. 24, 2003, which claims the benefit of U.S. Provisional Patent Application Ser. No. 60/457,660, filed Mar. 25, 2003. The disclosures of the above applications are incorporated herein by reference.

FIELD OF THE INVENTION

The present invention relates generally to transferring data to and from storage media for storing the data. More particularly, the present invention relates to detecting the fly height of a head over a storage medium.

BACKGROUND OF THE INVENTION

In storage media systems, it is important to maintain the fly height of the head within a prescribed region. If the fly height is too great, the signals transmitted and read by the head will be too weak for accurate data storage and retrieval. If the fly height is too small, the head can physically contact the medium, causing physical damage to the medium and loss of the data stored on the medium.

Methods for detecting fly height generally employ a known pattern written on the storage medium. In response to the pattern, the head produces one or more pulses. One conventional method to detect fly height measures the peak amplitude of the pulse. Another conventional method is to measure the duration of the pulse, for example at its half-amplitude point. Still another method involves measuring the area under the pulse. These method are unreliable because the amplitude of the pulse, and the area under the pulse, are affected unpredictably by factors such as the gain of the storage system.

SUMMARY OF THE INVENTION

In general, in one aspect, the invention features a data storage system comprising a storage medium; a head; a pulse circuit adapted to generate a pulse in response to a transition of the head over a predetermined pattern on the storage medium; a measurement circuit adapted to determine a first amplitude of the pulse at a first predetermined time and one or more second amplitudes of the pulse at respective second predetermined times; a calculation circuit adapted to provide a signal representing a distance between the head and the storage medium based on a function of the first and second amplitudes; and a head controller adapted to control the distance between the head and the storage medium based on the signal provided by the calculation circuit.

Particular implementations can include one or more of the following features. The function of the first and second amplitudes is a ratio of the first and second amplitudes. The function of the first and second amplitudes is a ratio of the first amplitude to a sum of the second amplitudes. The function of the first and second amplitudes is a logarithm of a ratio of the first amplitude to a sum of the second amplitudes. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at a baud rate of the symbols of the data; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise a previous amplitude determined from the one of the samples preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at a baud rate of the symbols of the data; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise an immediately previous amplitude determined from the one of the samples immediately preceding the one of the samples nearest the maximum amplitude of the pulse, and an immediately succeeding amplitude determined from the one of the samples immediately succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at n times the baud rate of the symbols of the data, where n>1; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise a previous amplitude determined from the one of the samples preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium; wherein the measurement circuit takes samples of the pulse at n times the baud rate of the symbols of the data, where n>1; wherein the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and wherein the second amplitudes comprise a previous amplitude determined from the one of the samples immediately preceding the n−1 of the samples immediately preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples immediately succeeding the n−1 of the samples immediately succeeding the one of the samples nearest the maximum amplitude of the pulse.

In general, in one aspect, the invention features an apparatus for determining a distance between a head and a storage medium, the apparatus comprising a pulse circuit adapted to generate a pulse in response to a transition of the head over a predetermined pattern on the storage medium; a measurement circuit adapted to determine a first amplitude of the pulse at a first predetermined time and one or more second amplitudes of the pulse at respective second predetermined times; and a calculation circuit adapted to provide a signal representing the distance between the head and the storage medium based on a function of the first and second amplitudes.

Particular implementations can include one or more of the following features. The function of the first and second amplitudes is a ratio of the first and second amplitudes. The function of the first and second amplitudes is a ratio of the first amplitude to a sum of the second amplitudes. The function of the first and second amplitudes is a logarithm of a ratio of the first amplitude to a sum of the second amplitudes. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at a baud rate of the symbols of the data; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise a previous amplitude determined from the one of the samples preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at a baud rate of the symbols of the data; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise an immediately previous amplitude determined from the one of the samples immediately preceding the one of the samples nearest the maximum amplitude of the pulse, and an immediately succeeding amplitude determined from the one of the samples immediately succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at n times the baud rate of the symbols of the data, where n>1; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise a previous amplitude determined from the one of the samples preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at n times the baud rate of the symbols of the data, where n>1; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise a previous amplitude determined from the one of the samples immediately preceding the n−1 of the samples immediately preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples immediately succeeding the n−1 of the samples immediately succeeding the one of the samples nearest the maximum amplitude of the pulse.

In general, in one aspect, the invention features an integrated circuit for determining a distance between a head and a storage medium, the integrated circuit comprising a measurement circuit adapted to receive a pulse from the head in response to a transition of the head over a predetermined pattern on the storage medium, and adapted to determine a first amplitude of the pulse at a first predetermined time and one or more second amplitudes of the pulse at respective second predetermined times; and a calculation circuit adapted to provide a signal representing the distance between the head and the storage medium based on a function of the first and second amplitudes.

Particular implementations can include one or more of the following features. The function of the first and second amplitudes is a ratio of the first and second amplitudes. The function of the first and second amplitudes is a ratio of the first amplitude to a sum of the second amplitudes. The function of the first and second amplitudes is a logarithm of a ratio of the first amplitude to a sum of the second amplitudes. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at a baud rate of the symbols of the data; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise a previous amplitude determined from the one of the samples preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at a baud rate of the symbols of the data; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise an immediately previous amplitude determined from the one of the samples immediately preceding the one of the samples nearest the maximum amplitude of the pulse, and an immediately succeeding amplitude determined from the one of the samples immediately succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at n times the baud rate of the symbols of the data, where n>1; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise a previous amplitude determined from the one of the samples preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium; the measurement circuit takes samples of the pulse at n times the baud rate of the symbols of the data, where n>1; the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and the second amplitudes comprise a previous amplitude determined from the one of the samples immediately preceding the n−1 of the samples immediately preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples immediately succeeding the n−1 of the samples immediately succeeding the one of the samples nearest the maximum amplitude of the pulse.

In general, in one aspect, the invention features a method, apparatus, and computer-readable media comprising receiving a pulse generated in response to a transition of a head over a predetermined pattern on a storage medium; measuring a first amplitude of the pulse at a first predetermined time and one or more second amplitudes of the pulse at respective second predetermined times; and calculating a distance between the head and the storage medium based on a function of the first and second amplitudes.

Particular implementations can include one or more of the following features. The function of the first and second amplitudes is a ratio of the first and second amplitudes. The function of the first and second amplitudes is a ratio of the first amplitude to a sum of the second amplitudes. The function of the first and second amplitudes is a logarithm of a ratio of the first amplitude to a sum of the second amplitudes. A plurality of symbols of data are stored on the storage medium, further comprising taking samples of the pulse at a baud rate of the symbols of the data; wherein the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and wherein the second amplitudes comprise a previous amplitude determined from the one of the samples preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium, further comprising taking samples of the pulse at a baud rate of the symbols of the data; wherein the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and wherein the second amplitudes comprise an immediately previous amplitude determined from the one of the samples immediately preceding the one of the samples nearest the maximum amplitude of the pulse, and an immediately succeeding amplitude determined from the one of the samples immediately succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium, further comprising taking samples of the pulse at n times the baud rate of the symbols of the data, where n>1; wherein the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and wherein the second amplitudes comprise a previous amplitude determined from the one of the samples preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples succeeding the one of the samples nearest the maximum amplitude of the pulse. A plurality of symbols of data are stored on the storage medium, further comprising wherein the measurement circuit takes samples of the pulse at n times the baud rate of the symbols of the data, where n>1; wherein the first amplitude is determined from the one of the samples nearest a maximum amplitude of the pulse; and wherein the second amplitudes comprise a previous amplitude determined from the one of the samples immediately preceding the n−1 of the samples immediately preceding the one of the samples nearest the maximum amplitude of the pulse, and a succeeding amplitude determined from the one of the samples immediately succeeding the n−1 of the samples immediately succeeding the one of the samples nearest the maximum amplitude of the pulse. Implementations comprise controlling the distance between the head and the storage medium based on the calculated distance between the head and the storage medium. Implementations comprise generating the pulse in response to a transition of a head over a predetermined pattern on a storage medium.

In general, in one aspect, the invention features a data storage system comprising a storage medium; a head; a pulse circuit adapted to generate a pulse in response to a transition of the head over a predetermined pattern on the storage medium; a measurement circuit adapted to determine a first amplitude of a power spectrum of the pulse at a first predetermined frequency and a second amplitude of the power spectrum of the pulse at respective second predetermined frequencies; and a calculation circuit adapted to provide a signal representing a distance between the head and the storage medium based on a function of the first and second amplitudes; and a head controller adapted to control the distance between the head and the storage medium based on the signal provided by the calculation circuit.

Particular implementations can include one or more of the following features. The function of the first and second amplitudes is a ratio of the first and second amplitudes. The function of the first and second amplitudes is a logarithm of a ratio of the first and second amplitudes. A sequence of symbols of data having first and third harmonics is stored on the storage medium; the first amplitude is determined at the first harmonic of the power spectrum of the pulse; and the second amplitude is determined at the third harmonic of the power spectrum of the pulse.

In general, in one aspect, the invention features an apparatus for controlling a head in a data storage system comprising a storage medium, the apparatus comprising a pulse circuit adapted to generate a pulse in response to a transition of the head over a predetermined pattern on the storage medium; a measurement circuit adapted to determine a first amplitude of a power spectrum of the pulse at a first predetermined frequency and a second amplitude of the power spectrum of the pulse at respective second predetermined frequencies; and a calculation circuit adapted to provide a signal representing a distance between the head and the storage medium based on a function of the first and second amplitudes.

Particular implementations can include one or more of the following features. The function of the first and second amplitudes is a ratio of the first and second amplitudes. The function of the first and second amplitudes is a logarithm of a ratio of the first and second amplitudes. A sequence of symbols of data having first and third harmonics is stored on the storage medium; the first amplitude is determined at the first harmonic of the power spectrum of the pulse; and the second amplitude is determined at the third harmonic of the power spectrum of the pulse.

In general, in one aspect, the invention features an integrated circuit for controlling a head in a data storage system comprising a storage medium, the integrated circuit comprising a measurement circuit adapted to receive a pulse in response to a transition of the head over a predetermined pattern on the storage medium, and adapted to determine a first amplitude of a power spectrum of the pulse at a first predetermined frequency and a second amplitude of the power spectrum of the pulse at respective second predetermined frequencies; and a calculation circuit adapted to provide a signal representing a distance between the head and the storage medium based on a function of the first and second amplitudes.

Particular implementations can include one or more of the following features. The function of the first and second amplitudes is a ratio of the first and second amplitudes. The function of the first and second amplitudes is a logarithm of a ratio of the first and second amplitudes. A sequence of symbols of data having first and third harmonics is stored on the storage medium; wherein the first amplitude is determined at the first harmonic of the power spectrum of the pulse; and wherein the second amplitude is determined at the third harmonic of the power spectrum of the pulse.

In general, in one aspect, the invention features a method, apparatus, and computer-readable media comprising receiving a pulse generated in response to a transition of a head over a predetermined pattern on a storage medium; measuring a first amplitude of a power spectrum of the pulse at a first predetermined frequency and a second amplitude of the power spectrum of the pulse at respective second predetermined frequencies; and calculating a distance between the head and the storage medium based on a function of the first and second amplitudes.

Particular implementations can include one or more of the following features. The function of the first and second amplitudes is a ratio of the first and second amplitudes. The function of the first and second amplitudes is a logarithm of a ratio of the first and second amplitudes. A sequence of symbols of data having first and third harmonics is stored on the storage medium; wherein the first amplitude is determined at the first harmonic of the power spectrum of the pulse; and wherein the second amplitude is determined at the third harmonic of the power spectrum of the pulse. Implementations comprise controlling a distance between the head and the storage medium based on the distance between the head and the storage medium determined by the calculation circuit and generating the pulse in response to a transition of a head over a predetermined pattern on a storage medium.

The details of one or more implementations are set forth in the accompanying drawings and the description below. Other features will be apparent from the description and drawings, and from the claims.

DESCRIPTION OF DRAWINGS

FIG. 1 shows a data storage system comprising a data storage medium and a servo according to a preferred embodiment.

FIG. 2 shows a process that can be implemented by the data storage system of FIG. 1 to detect fly height in the time domain according to a preferred embodiment.

FIG. 3 shows a pulse generated in response to the transition of a head over a predetermined pattern on a storage medium.

FIG. 4 shows how the peak-to-side ratio of a pulse varies with channel bit density (CBD).

FIG. 5 shows a process that can be implemented by data storage system to detect fly height in the frequency domain according to a preferred embodiment.

FIG. 6 shows the power spectrum of a pulse generated in response to the transition of a head over a predetermined pattern on a storage medium.

FIG. 7 shows two power spectra and for a single pulse.

FIG. 8 shows the power spectra for different input data patterns.

FIG. 9 shows a comparison of some embodiments of the present invention by presenting the computed ratio as a function of CBD.

The leading digit(s) of each reference numeral used in this specification indicates the number of the drawing in which the reference numeral first appears.

DETAILED DESCRIPTION

Embodiments of the present invention detect fly height by determining channel bit density (CBD), which is given by CBD=PW ₅₀ /T  (1)

where T is the symbol duration and PW₅₀ is the duration of the pulse at its half-amplitude point, which for an inductive head is approximated by PW ₅₀≈√{square root over (g ²+4(d+a)²)}  (2a)

and which for a magneto-resistive head is approximated by PW ₅₀≈√{square root over (2g ²+4(d+a)²)}  (2b)

where g is the gap of the head, a is the transition length, and d is the fly height. Once CBD is known, equations (1) and (2) can be used to determine the fly height d.

When the head encounters a transition on the disk, the head generates a signal s(t) that can be modeled as a Lorentzian pulse

$\begin{matrix} {{s(t)} = \frac{1}{1 + \left( \frac{2t}{{PW}_{50}} \right)^{2}}} & (3) \end{matrix}$

where t is the time variable. This signal can be written as

$\begin{matrix} {{y(t)} = {{\sum\limits_{m}{\left( {u_{m} - u_{m - 1}} \right){s\left( {t - {mT}} \right)}}} + {n(t)}}} & (4) \end{matrix}$

where u_(m) is the data stream written onto the disk, spaced by time T, and where n(t) is the noise in the signal. After sampling, the discrete-time signal can be written as

$\begin{matrix} {y_{k} = {{y({kT})} = {{\sum\limits_{m}{\left( {u_{m} - u_{m - 1}} \right){s\left( {{kT} - {mT}} \right)}}} + {n({kT})}}}} & (5) \end{matrix}$

Clearly, with the same input data, y_(k) depends on s(t), which is a function of fly height d.

FIG. 1 shows a data storage system 100 comprising a data storage medium 102 and a servo 104 according to a preferred embodiment. For example, data storage medium 102 can be a magnetic hard disc and servo 104 can be a hard disc servo. However, storage medium 102 can also be an optical disc or other type of storage media. Servo 104 is connected by an arm 114 to a head 106 for transferring data to and/or from storage medium 102. Servo 104 comprises a pulse circuit 108, a measurement circuit 110, a calculation circuit 112, and a head controller 116.

According to one embodiment, the fly height is detected in the time domain by determining a function of two or more samples of the pulse. FIG. 2 shows a process 200 that can be implemented by data storage system 100 to detect fly height in the time domain according to a preferred embodiment. Pulse circuit 108 generates a pulse in response to each transition of the head over a predetermined pattern on the storage medium (step 202). Such a pulse 302 is shown in FIG. 3.

Measurement circuit 110 determines two or more amplitudes of the pulse at respective different times (step 204). Calculation circuit 112 determines a distance between the head and the storage medium based on a function of the amplitudes (step 206).

Referring to FIG. 3, measurement circuit 110 preferably determines an amplitude y_(peak) of the peak of pulse 302, and amplitudes y_(side,L) and y_(side,R) on the left and right sides, respectively, of pulse 302. Calculation circuit 112 computes a peak-to-side ratio r_(ps), preferably over many pulses 302, according to

$\begin{matrix} {r_{p\; s} = {- {\log\left( {\log\left( \frac{A{\sum{y_{peak}}}}{{\sum{y_{{side},L}}} + {\sum{y_{{side},R}}}} \right)} \right)}}} & (6) \end{matrix}$

where A is a constant. For example, for a 12T pattern (six ones followed by six zeroes), A=2. Of course, other patterns, and other functions of these amplitudes can be used to compute peak-to-side ratio r_(ps). In other embodiments, peak-to-side ratio r_(ps) is computed simply as the ratio of equation (6) without the logarithm function.

Alternatively, measurement circuit determines amplitude y_(peak) of the peak of pulse 302, and an amplitude y_(side) of one of the sides of pulse 302. Calculation circuit 112 computes peak-to-side ratio r_(ps), preferably over many pulses 302, according to

$\begin{matrix} {r_{p\; s} = {- {\log\left( {\log\left( \frac{B{\sum{y_{peak}}}}{\sum{y_{side}}} \right)} \right)}}} & (7) \end{matrix}$

where B is a constant. For example, for a 6T pattern (six ones followed by six zeroes), B=1, and for a 12T pattern (12 ones followed by 12 zeroes), B=2. Of course, other patterns, and other functions of these amplitudes can be used to compute peak-to-side ratio r_(ps). In other embodiments, peak-to-side ratio r_(ps) is computed simply as the ratio of equation (7) without the logarithm function. In any such embodiment, the peak-to-side ratio r_(ps) is preferably determined for multiple pulses, and the results are combined, for example by averaging or weighted averaging.

In a preferred embodiment, measurement circuit 110 takes samples of the pulse at a baud rate of the symbols of the data read from data storage medium 102, and determines two or more amplitudes of the pulse using the samples. Referring again to FIG. 3, amplitude y_(peak) is determined from the sample 304 nearest the peak of pulse 302, and amplitudes y_(side,L) and y_(side,R) are determined from samples preceding (306) and succeeding (308) that sample, respectively. Samples 306 and 308 can immediately precede and succeed sample 304, or can be separated from sample 304 by one or more other samples.

Head controller 116 controls the distance between the head and the storage medium based on the peak-to side ratio r_(ps). The peak-to-side ratio is a good measurement of CBD because it is independent of factors such as the gain of the storage system. FIG. 4 shows how the ratio varies with CBD. Referring to FIG. 4, graph 402 shows four peak samples (represented by circles) and six side samples (represented by triangles) for a pulse having CBD=1.0. Graph 404 shows four peak samples (represented by circles) and six side samples (represented by triangles) for a pulse having CBD=2.5. Because pulse width narrows with reduced CBD, the peak-to-side ratio increases, as is evident from FIG. 4.

According to one embodiment, the fly height is detected in the frequency domain by determining a function of two or more samples of the power spectrum of the pulse. FIG. 5 shows a process 500 that can be implemented by data storage system 100 to detect fly height in the frequency domain according to a preferred embodiment. Pulse circuit 108 generates a pulse in response to each transition of the head over a predetermined pattern on the storage medium (step 502). Such a pulse has a power spectrum 602 as shown in FIG. 6.

Measurement circuit 110 determines two or more amplitudes of the power spectrum at respective different frequencies (step 504). Calculation circuit 112 determines a distance between the head and the storage medium based on a function of the amplitudes (step 506).

Preferably measurement circuit 110 makes this measurement as the head passes over a known sequence or pattern of symbols stored on the storage medium. Preferably the pattern produces a harmonic at a high frequency and a harmonic at a low frequency so the ratio between the amplitudes of power spectrum 602 at those harmonics is large, For example, a pattern having first and third harmonics is preferable. Such a pattern is the 8T pattern (four ones followed by four zeroes), where the harmonics occur at ⅛T and ⅜T, where T is the symbol duration.

Measurement circuit 110 preferably measures the amplitudes of power spectrum 602 at the first and third harmonic frequencies, respectively. Referring to FIG. 6, measurement circuit 110 preferably measures an amplitude y1 of the first harmonic of power spectrum 602 and measures an amplitude y3 of the third harmonic of power spectrum 602. Calculation circuit 112 computes a ratio r_(fft) of the amplitudes, preferably over many pulses 302, according to

$\begin{matrix} {r_{fft} = {\log\left( \frac{{{\sum\limits_{k}{y_{k}{\mathbb{e}}^{{- j}\; k\frac{\pi}{4}}}}}^{2}}{{{\sum\limits_{k}{y_{k}{\mathbb{e}}^{{- j}\; k\frac{3\pi}{4}}}}}^{2}} \right)}} & (8) \end{matrix}$

Of course, other functions of these amplitudes can be used to compute ratio r_(fft). In other embodiments, ratio r_(fft) is computed simply as the ratio of equation (8) without the logarithm function. In any such embodiment, the ratio r_(fft) is preferably determined for multiple pulses, and the results are combined, for example by averaging or weighted averaging.

This operation can be implemented as a fast Fourier transform (FFT) using two filters for each frequency component (one for the sine component, and the other one for the cosine component) according to

$\begin{matrix} {{\sum\limits_{k}{y_{k}{\mathbb{e}}^{{- j}\; k\frac{\pi}{4}}}} = {{\sum\limits_{k}{y_{k}{\cos\left( {{- k}\frac{\pi}{4}} \right)}}} + {j{\sum\limits_{k}{y_{k}{\sin\left( {{- k}\frac{\pi}{4}} \right)}}}}}} & (9) \end{matrix}$

The full FFT operation can be simplified to compute only the cosine (or the sine) component according to

$\begin{matrix} {r_{{fft},{real}} = {\frac{1}{2}{\log\left( \frac{{{\sum\limits_{k}{y_{k}{\cos\left( {{- k}\frac{\pi}{4}} \right)}}}}^{2}}{{{\sum\limits_{k}{y_{k}{\cos\left( {{- k}\frac{3\pi}{4}} \right)}}}}^{2}} \right)}}} & (10) \end{matrix}$

Different input patterns produce different power spectra 602. Therefore any other pattern having a power spectrum that changes with CBD can be used.

Head controller 116 controls the distance between the head and the storage medium based on the ratio r_(fft). The ratio r_(fft) is a good measurement of CBD because it is independent of factors such as the gain of the storage system. FIG. 7 shows two power spectra 702 and 704 for a single pulse 302. Power spectrum 702 is for a pulse 302 having CBD=1.0. Power spectrum 704 is for a pulse 302 having CBD=2.5. From FIG. 7 it is clear that the ratio of the amplitudes of the first and third harmonics of a symbol pattern changes substantially with CBD.

FIG. 8 shows the power spectra for different input data patterns. Spectrum 802 is for an 8T pattern. Spectrum 804 is for a 6T pattern. Spectrum 806 is for a 4T pattern. From FIG. 8 it is clear that the 8T pattern has well-separated first and third harmonics, and so is well-suited for use with the present invention.

However, the 4T pattern is already present on many storage media, for example as the preamble for hard disk drives. In one embodiment well-suited for use with 4T patterns, measurement circuit 110 takes samples of the pulse at twice the baud rate of the symbols of the data read from data storage medium 102. This oversampling produces a power spectrum for the 4T pattern that resembles the power spectrum of the 8T pattern, with well-separated first and third harmonics. Of course, other oversampling multiples can be used with the 4T patterns and other patterns. For two-time oversampling, equations (5), (8) and (10) are replaced by equations (11), (12), and (13), respectively, given below.

$\begin{matrix} {y_{k}^{\prime} = {{y\left( {k\frac{T}{2}} \right)} = {{\sum\limits_{m}{\left( {u_{m} - u_{m - 1}} \right){s\left( {{k\frac{T}{2}} - {mT}} \right)}}} + {n({kT})}}}} & (11) \\ {r_{fft}^{\prime} = {\log\left( \frac{{{\sum\limits_{k}{y_{k}^{\prime}{\mathbb{e}}^{{- j}\; k\frac{\pi}{4}}}}}^{2}}{{{\sum\limits_{k}{y_{k}^{\prime}{\mathbb{e}}^{{- j}\; k\frac{3\pi}{4}}}}}^{2}} \right)}} & (12) \\ {r_{{fft},{real}}^{\prime} = {\frac{1}{2}{\log\left( \frac{{{\sum\limits_{k}{y_{k}^{\prime}{\cos\left( {{- k}\frac{\pi}{4}} \right)}}}}^{2}}{{{\sum\limits_{k}{y_{k}^{\prime}{\cos\left( {{- k}\frac{3\pi}{4}} \right)}}}}^{2}} \right)}}} & (13) \end{matrix}$

FIG. 9 shows a comparison of some embodiments of the present invention by presenting the computed ratio as a function of CBD. Curve 902, with data points shown as triangles, is for a peak-to-side ratio of a 12T pattern. Curve 904, with data points shown as circles, is for a peak-to-side ratio of a 6T pattern. Curve 906, with data points not shown, is for a power spectrum ratio r_(fft, Real). Curve 908, with data points shown as asterisks, is for a power spectrum ratio r_(fft). Curve 910, with data points shown as squares, is for a power spectrum ratio r_(fft) for 2× oversampling.

The invention can be implemented in digital electronic circuitry, or in computer hardware, firmware, software, or in combinations of them. Apparatus of the invention can be implemented in a computer program product tangibly embodied in a machine-readable storage device for execution by a programmable processor; and method steps of the invention can be performed by a programmable processor executing a program of instructions to perform functions of the invention by operating on input data and generating output. The invention can be implemented advantageously in one or more computer programs that are executable on a programmable system including at least one programmable processor coupled to receive data and instructions from, and to transmit data and instructions to, a data storage system, at least one input device, and at least one output device. Each computer program can be implemented in a high-level procedural or object-oriented programming language, or in assembly or machine language if desired; and in any case, the language can be a compiled or interpreted language. Suitable processors include, by way of example, both general and special purpose microprocessors. Generally, a processor will receive instructions and data from a read-only memory and/or a random access memory. Generally, a computer will include one or more mass storage devices for storing data files; such devices include magnetic disks, such as internal hard disks and removable disks; magneto-optical disks; and optical disks. Storage devices suitable for tangibly embodying computer program instructions and data include all forms of non-volatile memory, including by way of example semiconductor memory devices, such as EPROM, EEPROM, and flash memory devices; magnetic disks such as internal hard disks and removable disks; magneto-optical disks; and CD-ROM disks. Any of the foregoing can be supplemented by, or incorporated in, ASICs (application-specific integrated circuits).

A number of implementations of the invention have been described. Nevertheless, it will be understood that various modifications may be made without departing from the spirit and scope of the invention. Accordingly, other implementations are within the scope of the following claims. 

1. A fly height control system comprising: a measurement circuit that measures a first amplitude of a pulse in a time domain, which is based on a predetermined pattern recorded on a storage medium, at a first predetermined time and second amplitudes of the pulse in a time domain at respective second predetermined times; a calculation circuit that estimates a distance between a head and the storage medium based on a function of the first amplitude and the second amplitudes; and a head controller that controls the distance between the head and the storage medium based on the estimated distance.
 2. The fly height control system of claim 1 wherein the calculation circuit estimates the distance between the head and the storage medium based on a ratio of the first amplitude to a function of the second amplitudes.
 3. A fly height control system comprising: a measurement circuit that measures a first amplitude of a pulse in a time domain, which is based on a predetermined pattern recorded on a storage medium, at a first predetermined time and second amplitudes of the pulse in a time domain at respective second predetermined times; a calculation circuit that estimates a distance between a head and the storage medium based on a first function of a ratio of the first amplitude to a second function of the second amplitudes; and a head controller that controls the distance between the head and the storage medium based on the estimated distance.
 4. A fly height control system comprising: a measurement circuit that measures a first amplitude of a pulse, which is based on a predetermined pattern recorded on a storage medium, at a first predetermined time and one or more second amplitudes of the pulse at respective second predetermined times; wherein the first amplitude is determined from a first sample nearest a maximum amplitude of the pulse, wherein the second amplitudes include a preceding sample before the first sample and a following sample after the first sample; a calculation circuit that estimates a distance between a head and the storage medium based on a function of the first amplitude and the second amplitudes; and a head controller that controls the distance between the head and the storage medium based on the estimated distance.
 5. The fly height control system of claim 4 wherein the function of the first and second amplitudes is based on a ratio of the first and second amplitudes.
 6. The fly height control system of claim 4 wherein the function of the first and second amplitudes is based on a first function of a ratio of the first amplitude to a second function of the second amplitudes.
 7. The fly height control system of claim 4 wherein the function of the first and second amplitudes is based on a ratio of the first amplitude to a function of the second amplitudes.
 8. The fly height control system of claim 4 wherein the preceding sample is a sample preceding and adjacent to the first sample, and the following sample is a sample following and adjacent to the first sample.
 9. The fly height control system of claim 4 wherein the measurement circuit samples the pulse at n times a baud rate, where n is an integer greater than or equal to
 1. 10. A fly height control system comprising: a measurement circuit that measures a first amplitude of a pulse, which is based on a predetermined pattern recorded on a storage medium, at a first predetermined time and one or more second amplitudes of the pulse at respective second predetermined times, wherein the measurement circuit samples the pulse at n times a baud rate, where n is an integer greater than 1; a calculation circuit that estimates a distance between a head and the storage medium based on a function of the first and second amplitudes; and a head controller that controls the distance between the head and the storage medium based on the estimated distance, wherein the first amplitude is determined from a first sample nearest a maximum amplitude of the pulse; and wherein the second amplitudes comprise a preceding amplitude determined from a sample preceding n−1 samples preceding the first sample, and a following amplitude determined from a sample following n−1 samples following the first sample.
 11. A method comprising: measuring a first amplitude of a pulse, which is based on a predetermined pattern recorded on a storage medium, at a first predetermined time and second amplitudes of the pulse at respective second predetermined times; estimating a distance between a head and the storage medium based on a function of the first amplitude and the second amplitudes; and controlling the distance between the head and the storage medium based on the estimated distance.
 12. The method of claim 11 further comprising estimating the distance between the head and the storage medium based on a first function of a ratio of the first amplitude to a second function of the second amplitudes.
 13. A method comprising: measuring a first amplitude of a pulse, which is based on a predetermined pattern recorded on a storage medium, at a first predetermined time and second amplitudes of the pulse at respective second predetermined times; estimating a distance between a head and the storage medium based on a first function of a ratio of the first amplitude to a second function of the second amplitudes; and controlling the distance between the head and the storage medium based on the estimated distance.
 14. A method comprising: measuring a first amplitude of a pulse, which is based on a predetermined pattern recorded on a storage medium, at a first predetermined time and one or more second amplitudes of the pulse at respective second predetermined times; determining the first amplitude from a first sample nearest a maximum amplitude of the pulse; determining the second amplitudes from a preceding sample before the first sample and a following sample after the first sample; estimating a distance between a head and the storage medium based on a function of the first amplitude and the second amplitudes; and controlling the distance between the head and the storage medium based on the estimated distance.
 15. The method 14 wherein the function of the first and second amplitudes is a ratio of the first amplitude and a sum of the second amplitudes.
 16. The method 14 wherein the function of the first and second amplitudes is based on a first function of a ratio of the first amplitude to a second function of the second amplitudes.
 17. The method 14 wherein the function of the first and second amplitudes is based on a ratio of the first amplitude to a function of the second amplitudes.
 18. The method 14 wherein the preceding sample is a sample preceding and adjacent to the first sample, and the following sample is a sample following and adjacent to the first sample.
 19. The method 14 further comprising sampling the pulse at n times a baud rate, where n is an integer greater than or equal to
 1. 20. A method comprising: measuring a first amplitude of a pulse, which is based on a predetermined pattern recorded on a storage medium, at a first predetermined time and one or more second amplitudes of the pulse at respective second predetermined times; sampling the pulse at n times a baud rate, where n is an integer greater than 1; estimating a distance between a head and the storage medium based on a function of the first and second amplitudes; and controlling the distance between the head and the storage medium based on the estimated distance, wherein the first amplitude is determined from a first sample nearest a maximum amplitude of the pulse; and wherein the second amplitudes comprise a first amplitude determined from a sample preceding n−1 samples preceding the first sample, and a second amplitude determined from a sample following n−1 samples following the first sample. 